import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';

import 'swiper/dist/css/swiper.css'

// 引入移动端自适应的封装
import './utils/rem'

// 引入重置样式表
import './assets/stylesheet/rest.css'

// 引入路由
// BrowserRouter as Router  给路由一个别名

import { BrowserRouter as Router } from 'react-router-dom'

//引入store的样式
import {Provider} from 'react-redux'
import store from './store'
import './utils/intercepter'

ReactDOM.render(
   
        
            <Router>
               <Provider store={store}>
                    <App />
               </Provider>
            </Router>
        

, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
